//
//  BaseTbvCell.m
//  ZITHER
//
//  Created by weixin on 2018/10/10.
//  Copyright © 2018年 weixn. All rights reserved.
//

#import "BaseTbvCell.h"

@interface BaseTbvCell()


@end

@implementation BaseTbvCell

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.userInteractionEnabled = YES;

}

-(void)setBorderWithHiddem:(BOOL)hidden Color:(UIColor *)color width:(CGFloat)width Radius:(CGFloat)radius{
    
    self.viewBorder.layer.borderWidth = width;
    self.viewBorder.layer.borderColor = color.CGColor;
    self.viewBorder.layer.cornerRadius = radius;
    self.viewBorder.layer.shouldRasterize = YES;
    self.viewBorder.layer.rasterizationScale = [UIScreen mainScreen].scale;
    
}
- (UIView *)viewBorder{
    if (!_viewBorder) {
        _viewBorder = [[UIView alloc]init];
        [self addSubview:_viewBorder];
        [_viewBorder mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self).offset(0);
            make.left.equalTo(self).offset(14);
            make.right.equalTo(self).offset(-14);
            make.bottom.equalTo(self).offset(-22);
        }];
    }
    return _viewBorder;
}
@end
